
<form id="add-form" class="form-horizontal col-sm-12" role="form" data-toggle="validator" method="POST" action="">
	{:token()}
	<div class="form-group">
		<div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label for="c-title">任务计划标题:</label>
				<input id="c-title" data-rule="required" class="form-control"
					   placeholder="任务计划标题" name="row[title]" type="text">
			</div>
		</div>

		<!-- <div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label >关联客户:</label>
				<input type="hidden" name="row[relation_id]" data-rule="required" value="" >
				<div class="form-control">
					<a href="javascript:void(0)" class="select-customer" data-name="row[relation_id]"
					   data-url="qingdongwms/customer/customer/index?isselect=1"  >【请点击选择】</a>
				</div>
			</div>
		</div> -->
		<!-- <div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label for="c-event_type_1">计划类型:</label>
				<select id="c-event_type_1" name="row[event_type][]" class="form-control">
					<option value="">请选择计划类型</option>
					<option value="客户服务">客户服务</option>
					<option value="售后服务" selected="selected">售后服务</option>
				</select>
			</div>
		</div> -->
		<!-- <div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label for="c-event_type_2">服务方式:</label>
				<select id="c-event_type_2" name="row[event_type][]" data-value="上门" class="form-control">
					<option value="">请选择服务方式</option>
				</select>
			</div>
		</div> -->
		<!-- <div class="col-xs-12 col-sm-6" style="display: none" id="event_type_3">
			<div class="form-group col-sm-10">
				<label for="c-event_type_3">服务目的:</label>
				<select id="c-event_type_3" name="row[event_type][]" data-value="上门安装" class="form-control">
					<option value="">请选择服务目的</option>
				</select>
			</div>
		</div> -->
		<div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label for="c-level">紧要程度:</label>
				<select id="c-level" name="row[level]" class="form-control">
					<option value="0">普通</option>
					<option value="1">重要</option>
					<option value="2">紧急</option>
					<option value="4">重要且紧急</option>
				</select>
			</div>
		</div>

		<div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label>负责员工:</label>
				<input id="c-owner_staff_id" data-rule="required" class="form-control selectpage"
					   name="row[staff_id]" placeholder="请选择员工"
					   data-source="qingdongwms/common/getStaff" type="text" value="">
			</div>
		</div>
		<div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label>抄送员工:</label>
				<input id="c-owner_reminds_id" data-rule="required" class="form-control selectpage"
					   name="row[reminds_id]" placeholder="请选择员工"
					   data-source="qingdongwms/common/getStaff" type="text" value="">
			</div>
		</div>
		<!-- <div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label>指派员工:</label>
				<input id="c-owner_staff_id" data-rule="required" class="form-control selectpage"
					   name="row[staff_id]" placeholder="请选择员工"
					   data-source="qingdongwms/common/getStaff" type="text" value="">
			</div>
		</div> -->
		<div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label for="c-remindtype">提醒:</label>
				<select id="c-remindtype" name="row[remindtype]" class="form-control">
					<option value="0">准时提醒</option>
					<option value="1">5分钟前</option>
					<option value="2">15分钟前</option>
					<option value="3">30分钟前</option>
					<option value="4">一个小时前</option>
					<option value="5">两个小时前</option>
					<option value="6">一天前</option>
					<option value="7">两天前</option>
					<option value="8">一周前</option>
				</select>
			</div>
		</div>
		<div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label for="c-start_time">开始时间:</label>
				<input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" placeholder="选择开始时间" name="row[start_time]" type="text">
			</div>
		</div>
		<div class="col-xs-12 col-sm-6">
			<div class="form-group col-sm-10">
				<label for="c-end_time">预计结束时间:</label>
				<input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" placeholder="选择开始时间" name="row[end_time]" type="text">
			</div>
		</div>
		

		<div class="col-xs-12 col-sm-10">
			<div class="form-group col-sm-10">
				<label>任务备注:</label>
				<textarea class="form-control" rows="3" name="row[remark]" placeholder="请填写计划备注"></textarea>
			</div>
		</div>

		<div id="workorder_template" ></div>
	</div>
	<div class="form-group layer-footer">
		<label class="control-label col-xs-12 col-sm-2"></label>
		<div class="col-xs-12 col-sm-8">
			<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
			<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
		</div>
	</div>
</form>